<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>选人</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/allApp.css" />
		<link rel="stylesheet" href="css/choose.css" />
		<style>
			/*设置区域滚动*/
			
			.mui-scroll-wrapper {
				top: 80px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">选择人员</h1>
		</header>
		<div class="mui-content">
			<div class="choose_title">
				<div class="mui-pull-left">
					<span class="orangeLine"></span> 请选择
				</div>
				<div class="mui-pull-right orange">
					已选<span class="choosePeo">5</span>人
				</div>
			</div>
			<div class=" mui-scroll-wrapper">
				<div class="mui-scroll" id="choose">
					<div class="choose_line bgwhite">
						<span class="mui-icon mui-icon-checkmarkempty xuanYes"></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bghui">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bgwhite">
						<span class="mui-icon mui-icon-checkmarkempty xuanYes"></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bghui">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bgwhite">
						<span class="mui-icon mui-icon-checkmarkempty xuanYes"></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bghui">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bgwhite">
						<span class="mui-icon mui-icon-checkmarkempty xuanYes"></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bghui">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bgwhite">
						<span class="mui-icon mui-icon-checkmarkempty xuanYes"></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bghui">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bgwhite">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bghui">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bgwhite">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
					<div class="choose_line bghui">
						<span class="mui-icon mui-icon-checkmarkempty "></span>
						<span class="line_span">POWER01</span>
						<span class="line_span"> 赵灵幻</span>
						<span class="line_span"> 风电公司</span>
					</div>
				</div>
			</div>
		</div>
		<footer>
			<nav class="mui-bar mui-bar-tab footer">
				<a id="defaultTab" class="mui-tab-item ">
					<img class="home_icon" src="img/yes.png" />
					<span class="mui-tab-label yes">确定</span>
				</a>
				<a id="defaultTab1" class="mui-tab-item">
					<img class="home_icon" src="img/no.png" />
					<span class="mui-tab-label no">取消</span>
				</a>

			</nav>
		</footer>
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript">
			var people = "";
			var people_ = "";
			var sub;
			mui.init();
			mui('.mui-scroll-wrapper').scroll({
				scrollY: true, //是否竖向滚动
				scrollX: false, //是否横向滚动
				startX: 0, //初始化时滚动至x
				startY: 0, //初始化时滚动至y
				indicators: false, //是否显示滚动条
				deceleration: 0.0006, //阻尼系数,系数越小滑动越灵敏
				bounce: true //是否启用回弹
				//	deceleration: 0.0005 //flick 减速系数，系数越大，滚动速度越慢，滚动距离越小，默认值0.0006
			});
			mui.plusReady(function(){
			$(".mui-scroll-wrapper").height($(window).height() - $(".mui-bar.mui-bar-tab.footer").height() - 90)
				
			})
				//点击选中或取消
				mui("#choose").on("tap",".choose_line",function(){
					var peo=$(".choosePeo").html();
					$(this).children(".mui-icon").toggleClass("xuanYes");
					if($(this).children(".mui-icon").hasClass("xuanYes")){
						peo++;
					}else{
						peo--;
					}
					$(".choosePeo").html(peo);
				});
				$('#defaultTab').on('tap',function(){
					$.each($('.xuanYes'), function(i,v) {
						people_ = $(v).parent().find('span:nth-child(3)').text()+$(v).parent().find('span:last-child').text()+"; ";
						people += people_;
					});
					sub = plus.webview.currentWebview().opener();
					console.log('172-----'+people);
					mui.fire(sub,'getPeople',{
						people:people
					});
					mui.back();
				});
		</script>
	</body>

</html>